<include file="Public/header" />
<style>
.shop_sort .shop_sort_title{width:10%;}
.pic_container{float:left;width:88%;}
.pic_wrapper{float:left;width:110px;height:110px;position:relative;}
.pic_wrapper img{margin:10px 10px 10px 0;max-width:100px;max-height:100px;z-index:1;}
.pic_wrapper div{display:none;position:absolute;top:10px;width: 100px;height: 100px;color: #fff;background: rgba(0,0,0,0.6);line-height:100px;vertical-align: middle;text-align: center;font-size:18px;cursor:pointer;}
</style>
        <div class="comm-top">
            <h4 style="margin-bottom:0">积分设置</h4>
            <div class="add_page_top"></div>
        </div>
        <form id="dataFrom" onsubmit="return false;">
            <input type="hidden" name="info[id]" value="{$info.id}" />
            <div class="shop_sort_box">
                <div class="shop_sort">
                    <div class="shop_sort_title"><h4><must>*</must>单次分享积分:</h4></div>
                    <div class="shop_sort_set">
                        <input class="shop_sort_text" name="info[single_integral]" value="{$info.single_integral|default=0}" type="text" placeholder="请输入单次分享积分"/>
                    </div>
                </div>

                <div class="shop_sort">
                    <div class="shop_sort_title"><h4><must>*</must>每天最多积分：</h4></div>
                    <div class="shop_sort_set">
                        <input class="shop_sort_text" name="info[more_integral]" value="{$info.more_integral|default=0}" type="number" placeholder="请输入每天最多积分"/>
                    </div>
                </div>
                <div class="shop_sort">
                    <div class="shop_sort_title"><h4>分享给朋友赠送积分：</h4></div>
                    <div class="shop_sort_set">
                        <input class="shop_sort_text" name="info[share_friend]" value="{$info.share_friend|default=0}" type="text" placeholder="请输入分享给朋友赠送积分"/>
                    </div>
                </div>

                 <div class="shop_sort">
                    <div class="shop_sort_title"><h4>分享到朋友圈赠送积分：</h4></div>
                    <div class="shop_sort_set">
                        <input class="shop_sort_text" name="info[share_friend_circle]" value="{$info.share_friend_circle|default=0}" type="text" placeholder="请输入分享到朋友圈赠送积分"/>
                    </div>
                </div>
          
                <div class="shop_sort">
                    <div class="shop_sort_title">
                        <h4>&nbsp;</h4>
                    </div>
                    <div class="shop_sort_set">
                        <span onclick="save(this);return false" id="saveBtn" class="btngreen30">完成</span>
                        &nbsp;&nbsp;&nbsp;
                        <span onclick="history.go(-1);" class="btngray30">返回</span>
                    </div>
                </div>
            </div>
        </form>
<script type="text/javascript">
function save(obj){
    $.post('{:U("save_integral")}',$('#dataFrom').serialize(),function(res){
        if(res.status == 1){
            note_info(res.info,obj);
            setTimeout('window.location.href="'+res.url+'"',1200);
        }else{
            note_info(res.info,obj,'warn');
        }
    })
}
</script>
<include file="Public/footer"/>
